home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
CD ROM Paradise Collection 4
/
CD ROM Paradise Collection 4 1995 Nov.iso
/
program
/
swagd_f.zip
/
DRIVES.SWG
/
0085_Find if Floopy has been changed.pas
< prev
next >
Wrap
Pascal/Delphi Source File
|
1995-03-03
|
450b
|
17 lines
{
> Anybody have a quick function that can tell if a diskette has been
> changed? I was just writing a volume label to it then reading that back
> until it changed, but my boss whined about all those disk accesses
> being hard on the drive.
}
function diskchange(drive:byte;):boolean;Assembler;
asm
Mov AH,16h;
mov DL, Byte Ptr Drive;
Int 13h;
Mov AL, AH;
End;
{ Drive byte is in the range of 0 - 1 for A:- B: ect././. }